package demo0516;

import java.util.List;

public class Demo {
	
	public int sum3(int[] nums) {
		return nums[0]+nums[1]+nums[2];
	}
	
	
	
	public int sum3List(List<Integer> nums) {
		return nums.get(0)+nums.get(1)+nums.get(2);
	}
	
	public int sumNList(List<Integer> nums) {
		return nums.get(0)+nums.get(1)+nums.get(2);
	}
	
	
	
	
	
	
	
	
	public static void main(String args[]) {
	  
	    Demo demo=new Demo();
	    int x[]= {3,4,5};
	   int sum =demo.sum3(x);
	   System.out.println(sum);
	   
	   String s11=null;
	   if(s11!=null) {
	     System.out.println(s11.length());
	   }
	   
	   String s12="";
	   
	   
	   
	   
	   Student s1=null;
	   if(s1==null) {
		   
	   }
	   s1=new Student();
	   
	   
	}

}
